listen to realtime updates from firebase database c